<template>
  <div class="wrapper">
    <swiper :options="swiperOption" >
      <!-- slides -->
      <swiper-slide v-for='(item,index) in swiperList' :key='index'>
        <img class="swiper-img" :src="item.imgUrl" />
      </swiper-slide>
      <div class="swiper-pagination" slot="pagination"></div>
    </swiper>
  </div>
</template>

<script>
export default {
  name: "headerswiper",
  components: {},
  props: ['swiperList'],
  data() {
    return {
      swiperOption: {
        pagination: ".swiper-pagination",
        loop: true,
      },
    };
  },
  mounted() {},
  methods: {},
  computed: {},
  watch: {},
  created() {},
};
</script>

<style lang='stylus' scoped>
img{
  width 100%
  height 3rem
}


</style>
